package com.jumi.microservice.material.service;

import com.jumi.microservice.material.domain.JmWarehouseSeq;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author ssk
 * @create 2020/7/22 11:43
 **/
public interface JmWarehouseSeqService {

    /**
     * 保存方法
     *
     * @param jmWarehouseSeq
     * @return
     */
    int save(JmWarehouseSeq jmWarehouseSeq);

    /**
     * 更新方法
     *
     * @param jmWarehouseSeq
     * @return
     */
    int update(JmWarehouseSeq jmWarehouseSeq);

    /**
     * 根据id查询实体类
     *
     * @param seqId
     * @return
     */
    JmWarehouseSeq findById(Long seqId);

    JmWarehouseSeq findById2(Long seqId);

    /**
     * 根据条件查询实体类集合
     *
     * @param jmWarehouseSeq
     * @return
     */
    List<JmWarehouseSeq> findAll(JmWarehouseSeq jmWarehouseSeq);
    List<JmWarehouseSeq> findAll2(JmWarehouseSeq jmWarehouseSeq);

    /**
     * 根据seqId软删仓库发货顺序
     * @param seqId
     * @return
     */
    int delSeqBySeqId(Long seqId);

    Set findSeqIdsByParam(JmWarehouseSeq jmWarehouseSeq);

    int updateStatus(JmWarehouseSeq jmWarehouseSeq);

    List<Map<String,Object>> findByAreaId(Long areaId);
}
